const baseModel = require('./baseModel')

const {Schema,ObjectId} = require('mongoose')


module.exports = new Schema({
    video:{
        type:ObjectId,
        required:true,
        ref:'Video'
    },
    user:{
        type:ObjectId,
        required:true,
        ref:'User'
    },
    like:{
        required:true,
        enmu:[-1,1],
        type:Number
    }
})